<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Template {	
	public function __construct($config = array())
	{
	
	}
    function index()
    {
        
    }
    function render($data){
        $setting = unserialize(file_get_contents('setting_cache.txt'));
        if(!empty($data->title)){
            $setting['title'] = $data->title;
        }
        if(!empty($data->metades)){
            $setting['metades'] = $data->metades;
        }
        if(!empty($data->metakey)){
            $setting['metakey'] = $data->metakey;
        }
        if(!empty($data->content)){
            $setting['content'] = $data->content;
        }else{
            $setting['content'] = 'Empty';
        }
        return $setting;
    }



}
// END CI_Email class

/* End of file Email.php */
/* Location: ./system/libraries/Email.php */
